home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / MISCELLA / DVIWN281.ZIP / GENALL.BAT < prev    next >
DOS Batch File  |  1993-09-30  |  547b  |  18 lines

  1. @echo off
  2. if exist %TEMP%\lock_$_$.bat goto RUNNING
  3. copy %1 %TEMP%\lock_$_$.bat > nul
  4. del %1
  5. %COMSPEC% /e:2048 /c %TEMP%\lock_$_$
  6. del %TEMP%\lock_$_$.bat
  7. if exist %TEMP%\error$_$ del %TEMP%\error$_$
  8. goto GETOUT
  9. :RUNNING
  10. echo/
  11. echo It seems that another instance of this batch file is already running.
  12. echo If this is true, please wait until it finishes and then run this batch
  13. echo file again. If on the other hand this is not true, delete the file
  14. echo %TEMP%\lock_$_$.bat and then run this batch file again.
  15. echo/
  16. pause
  17. :GETOUT
  18.